﻿using System;
using System.Collections.Generic;
using System.Text;
using XISoft.AppCreator.Util.CompileHelper;
using XISoft.AppCreator.TplEngine.ITpl;

namespace XISoft.AppCreator.TplEngine.XITpl
{
    public class XIType:IBaseType
    {
        #region IBaseType 成员
        private int _uILength, _dBLength;
        private String _id, _name, _display;
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name =  CompileCommon.LowFirst(value);
            if (value.ToLower().Equals("int"))
                _display = "int";
            else
                _display = CompileCommon.UpFirst(value);
            }
        }

        public string DisplayName
        {
            get { return _display; }
            set { _display = value; }
        }

        #endregion

        public int UILength
        {
            get { return _uILength; }
            set { _uILength = value; }
        }
        public int DBLength
        {
            get { return _dBLength; }
            set { _dBLength = value; }
        }
    }
}
